/**
 * 微信视频号数据映射定义
 */

// --基础数据Map列表--
// 流量指标数据键值对列表
export const trafficDataMaps = [
  { label: "实时在线人数", key: "onlineWatchUv" },
  { label: "最高在线人数", key: "peakOnlineWatchUv" },
  { label: "累计观看人数", key: "cumulativeWatchUv" },
  { label: "累计观看次数", key: "cumulativeWatchPv" },
  { label: "人均观看时长", key: "averageWatchSecondsPerAudience" },
  { label: "平均在线人数", key: "averageOnlineWatchUvPerMinute" },
  { label: "直播曝光人数", key: "impressionUv" }
]
// 互动指标数据键值对列表
export const interactDataMaps = [
  { label: "新增关注", key: "cumulativeNewFollowUv" },
  { label: "加入粉丝团人数", key: "cumulativeNewFansClubUv" },
  { label: "评论人数", key: "cumulativeCommentUv" },
  { label: "评论次数", key: "cumulativeCommentPv" },
  { label: "分享直播间人数", key: "cumulativeSharingUv" },
  { label: "分享直播间次数", key: "cumulativeSharingPv" },
  { label: "送礼人数", key: "cumulativeRewardUv" },
  { label: "总热度", key: "cumulativeHotQuota" },
  { label: "送礼热度", key: "cumulativeSharingUv" },
  { label: "点赞次数", key: "cumulativeLikePv" }
]
// 交易指标数据键值对列表
export const ecDataMaps = [
  { label: "成交订单数", key: "totalPayPv" },
  { label: "成交人数", key: "totalPayUv" },
  { label: "点击成交转化率", key: "clkPayRatio", digital: 4 },
  { label: "观看成交转化率", key: "audiencePayRatio", digital: 4 },
  {
    label: "千次观看成交金额",
    key: "gmvPerThousandCumulativeWatchPv",
    digital: 2
  }
]
// 售后指标数据键值对列表
export const afterSaleDataMaps = [
  { label: "退款率", key: "refundRate", digital: 4 },
  { label: "退款人数", key: "refundUv" },
  { label: "退款商品数", key: "refundProductCnt" },
  { label: "退款订单数", key: "refundPv" },
  { label: "退款金额", key: "refundAmount", cut: true }
]

// --商品数据Map列表--
export const productDataMaps = [
  { label: "商品图片", key: "thumbUrl", parent: "baseData" },
  { label: "商品标题", key: "spuName", parent: "baseData" },
  { label: "上架时间", key: "firstTs", parent: "baseData" },
  { label: "商品价格", key: "price", parent: "baseData", cut: true },
  { label: "店铺名称", key: "srcName", parent: "baseData" },
  { label: "成交金额", key: "gmv", cut: true },
  { label: "商品id", key: "spuId", parent: "baseData" },
  { label: "库存", key: "stock", parent: "baseData" },
  { label: "讲解次数", key: "explanationCount" },
  { label: "创建订单数", key: "createPv" },
  { label: "创建订单人数", key: "createUv" },
  { label: "成交订单数", key: "payPv" },
  { label: "成交人数", key: "payUv" },
  { label: "未支付订单数", key: "noFinishPv" },
  { label: "分享人数", key: "" },
  { label: "曝光人数", key: "expUv" },
  { label: "曝光次数", key: "expPv" },
  { label: "点击人数", key: "clkUv" },
  { label: "点击次数", key: "clkPv" },
  { label: "曝光点击率", key: "expClkRatio", digital: 4 },
  { label: "点击成交转化率", key: "clkPayRatio", digital: 4 },
  { label: "退款率", key: "refundRate" },
  { label: "退款人数", key: "refundUv" },
  { label: "退款订单数", key: "refundPv" },
  { label: "退款金额", key: "refundAmount", cut: true }
]
